package com.myopen.controller.admin;


import com.jfinal.core.ActionKey;
import com.jfinal.plugin.activerecord.Page;
import com.jfinal.plugin.activerecord.Record;
import com.myopen.base.BaseController;
import com.myopen.base.BaseDataTableVo;
import com.myopen.model.User;

public class MemberController extends BaseController{

	@ActionKey("/admin/shop/member")
	public void index(){
		render("/admin/shop/member/index.html");
	}
	
	@ActionKey("/admin/shop/member/pagequery")
	public void pagequery(){
		
		Record record=getSearchRecord();//会自动组装通用的参数
		record.set("searchContent", getPara("searchContent"));
		record.set("status", getPara("status"));
		record.set("memberCodeIn","'member'");
		Page<Record> page=User.dao.pagequery(record);
		
		BaseDataTableVo tableVo=new BaseDataTableVo(page);
		renderJson(tableVo);
	}
	
}
